package com.ljx.itbbs.server.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.itbbs.common.domain.entity.UserEntity;
import com.ljx.itbbs.server.user.domain.vo.req.UserUpdateReq;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiJunXi
 * @since 2024-03-01
 */
public interface UserMapper extends BaseMapper<UserEntity> {

    void updateUserInfo(@Param("uid") Long uid, @Param("req") UserUpdateReq req);

    void increaseUserIntegral(@Param("userId") Long userId, @Param("integral") Integer integral);

}
